import java.util.InputMismatchException;
import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        try {
            System.out.println(a / b);
        } catch (ArithmeticException e) {
            throw new ArithmeticException("请输入不为0的数字");
        } catch (InputMismatchException e) {
            throw new ArithmeticException("请输入数字");
        } finally {
            System.out.println("谢谢");
        }
    }
}
